<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src=__PUBLIC__/Admin/js/html5.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Admin/js/respond.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Admin/js/PIE_IE678.js"></script>
    <![endif]-->
    <link type="text/css" rel="stylesheet"
          href="__PUBLIC__/Admin/css/H-ui.css" />
    <link type="text/css" rel="stylesheet"
          href="__PUBLIC__/Admin/css/H-ui.admin.css" />
    <link type="text/css" rel="stylesheet"
          href="__PUBLIC__/Admin/font/font-awesome.min.css" />
    <!--[if IE 7]>
    <link href="__PUBLIC__Admin/font/font-awesome-ie7.min.css" rel="stylesheet" type="text/css" />
    <![endif]-->
    <title>修改模板</title>
</head>
<body>
<div class="pd-20">
    <div class="Huiform">
        <form action="__APP__/Admin/edititemed" method="post">
            <table class="table table-bg">
                <tbody>
                <tr>
                    <th width="100" class="text-r"><span class="c-red">*</span>
                        标题名称：</th>
                    <td>
                        <input type="hidden" value="{$item.id}" name="id">
                        <input type="text" style="width:200px"
                               class="input-text" value="{$item.title}" placeholder="" id="typeName"
                               name="title" datatype="*2-16" nullmsg="标题名称不能为空"
                    ></td>
                </tr>
                <tr>
                    <th width="100" class="text-r"><span class="c-red">*</span>
                        作者：</th>
                    <td>
                        <select name="author">
                            <volist name="authors" id="as" >
                                <eq name="as.id" value="$item.author">
                                    <option value="{$as.id}" selected>{$as.nickname}</option>
                                    <else />
                                    <option value="{$as.id}">{$as.nickname}</option>

                                </eq>

                            </volist>
                        </select>
                    </td>
                </tr>

                <tr>
                    <th width="100" class="text-r"><span class="c-red">*</span>
                        分类：</th>
                    <td>
                        <select name="type">
                            <volist name = "types" id = "type">
                                <eq name="type.id" value = "$item.type">
                                    <option value="{$type.id}" selected>{$type.name}</option>
                                    <else />
                                    <option value="{$type.id}">{$type.name}</option>
                                </eq>
                            </volist>
                        </select>
                    </td>
                </tr>
                <tr>
                    <th></th>
                    <td><button class="btn btn-success radius" type="submit">
                        <i class="icon-ok"></i> 确定
                    </button></td>
                </tr>
                </tbody>
            </table>
        </form>
    </div>
</div>

<script type="text/javascript" src="__PUBLIC__/Admin/js/jquery.min.js"></script>
<script type="text/javascript"
        src="__PUBLIC__/Admin/js/Validform_v5.3.2_min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/js/H-ui.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/js/H-ui.admin.js"></script>

<script type="text/javascript" src="__PUBLIC__/Admin/layer/layer.min.js"></script>

<script type="text/javascript">
    $(".Huiform").Validform();
</script>


<if condition="$addtype eq 1">
    <script type="text/javascript">
        alert("修改成功");
        var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
        parent.layer.close(index); //再执行关闭
    </script>
</if>
</body>
</html>